List of App Environments

Returns a paginated list of application environments configured for the given Project.

GET{accelqLoginUrl}/awb/api/2.0/{tenantCode}/{projectCode}/conf/app-environments

Headers

HeaderValue
user_idLogin username (email)
api_keyAPI key of the user for authentication
Content-Typeapplication/json
Acceptapplication/json

Parameters

ParameterTypeRequiredDescription
accelqLoginUrlstringYesThe AccelQ login URL for API access.
tenantCodestringYesTenant code for identifying the organization.
projectCodestringYesProject Code found under Auth properties of ACCELQ User Profile
pageintegerNoPage number for pagination.
pageSizeintegerNoNumber of items per page (Maximum: 100).
user_idstringYesLogin username (email)
api_keystringYesAPI key of the user for authentication

Responses

200 - Returns the list of app environments.

json
{
  "page": 1,
  "pageSize": 10,
  "totalPages": 3,
  "totalCount": 21,
  "results": [
    {
      "pid": 1,
      "appEnvironmentName": "Staging",
      "description": "Staging Environment"
    },
    {
      "pid": 2,
      "appEnvironmentName": "Prod",
      "description": "Prod Environment"
    },
    {
      "pid": 3,
      "appEnvironmentName": "Live",
      "description": "Live Environment"
    },
    {
      "pid": 5,
      "appEnvironmentName": "Staging 2",
      "description": "Staging Environment"
    },
    {
      "pid": 6,
      "appEnvironmentName": "Test",
      "description": "Test Environment"
    },
    {
      "pid": 31,
      "appEnvironmentName": "Sample",
      "description": "Environment"
    },
    {
      "pid": 38,
      "appEnvironmentName": "Prod 2",
      "description": "Prod2 Environment"
    },
    {
      "pid": 39,
      "appEnvironmentName": "Staging 3",
      "description": ""
    },
    {
      "pid": 41,
      "appEnvironmentName": "Patch",
      "description": "Patch Environment"
    },
    {
      "pid": 44,
      "appEnvironmentName": "Next Release",
      "description": "Environment"
    }
  ]
}

403 - Forbidden - User does not have permission to fetch app environments

json
{
  "error": "User do not have authorization to access this feature."
}

422 - Project not found.

json
{
  "error": "Project with code 'proj123' not found."
}

cURL Command Builder

URL Parameters

Headers

Request Sample (cURL)

curl -X GET "${{accelqLoginUrl}}/awb/api/2.0/${{tenantCode}}/${{projectCode}}/conf/app-environments?page=${{page}}&pageSize=${{pageSize}}" \
  -H "user_id: ${{user_id}}" \
  -H "api_key: ${{api_key}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"